Capabilities for Uniqueness and Borrowing

نویسندگان

  • Philipp Haller
  • Martin Odersky
چکیده

An important application of unique object references is safe and efficient message passing in concurrent object-oriented programming. However, to prevent the ill effects of aliasing, practical systems often severely restrict the shape of messages passed by reference. Moreover, the problematic interplay between destructive reads–often used to implement unique references–and temporary aliasing through “borrowed” references is exacerbated in a concurrent setting, increasing the potential for unpredictable run-time errors. This paper introduces a new approach to uniqueness. The idea is to use capabilities for enforcing both at-most-once consumption of unique references, and a flexible notion of uniqueness. The main novelty of our approach is a model of uniqueness and borrowing based on simple, unstructured capabilities. The advantages are: first, it provides simple foundations for uniqueness and borrowing. Second, it can be formalized using a relatively simple type system, for which we provide a complete soundness proof. Third, it avoids common problems involving borrowing and destructive reads, since unique references subsume borrowed references. We have implemented our type system as an extension to Scala. Practical experience suggests that our system allows type checking real-world actor-based concurrent programs with only a small number of additional type annotations.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Constructing jurisdictional advantage

This paper aims to advance economic development theory through the concept of jurisdictional advantage; demonstrating how places might strategically position themselves to gain economic advantage; then considering how this place-specific advantage might be constructed. We choose the term jurisdiction to define the set of actors that have a common interest in a spatially bound community. Jurisdi...

متن کامل

Multiperiod Portfolio Selection with Different Rates for Borrowing and Lending in Presence of Transaction Costs

Portfolio management is one of the most important areas of research in financial engineering. This paper is concerned with multi period decision problem for financial asset allocation when the rate of borrowing is greater than the rate of lending. Transaction costs as a source of concern for portfolio managers is also considered in this paper. The proposed method of this paper is formulated in ...

متن کامل

Comparative analysis of financing the government budget deficit through Islamic treasury bills and borrowing from the central bank

The budget deficit refers to the situation where the government’s expenditures exceeding its revenues According to many schools of economics, the existence of a persistent budget deficit in an economy is a sign of that country’s economic weakness, and the government of that country must implement economic reforms to eliminate or reduce it in various ways. There are various ways to finance the b...

متن کامل

Existence and uniqueness of weak solutions for a class of nonlinear divergence type diffusion equations

‎In this paper‎, ‎we study the Neumann boundary value problem of a class of nonlinear divergence type diffusion equations‎. ‎By a priori estimates‎, ‎difference and variation techniques‎, ‎we establish the existence and uniqueness of weak solutions of this problem.

متن کامل

Cell Breathing in CDMA Networks

The widespread deployment of wireless cellular technology affects the traditional concept of channel allocation and drives the necessity for novel load balancing techniques. Various load-balancing schemes have been proposed to assign channels to the cells such that the available channels are efficiently used and thus channel reuse, maximized. This is particularly important in networks where tra...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2010